   // 初始化工单列表
   $(function () {
       $('#example').DataTable({
           "dom": '<"top"f>rt<"bottom"ip><"clear">',
           "ajax": {
               "url": MANAGE_URL + "/search",
            //    "url": MANAGE_URL + "/orderList.json",
               //默认为data,这里定义为空，则只需要传不带属性的数据
               "dataSrc": "data"
           },
           "createdRow": function (row, data, index) {
               console.log(index);
           },
           "columns": [
                { "data": "workOrderNo" },
                { "data": "customerName" },
                { "data": "productName" },
                { "data": "problemDescCustomer" },
                { "data": "customerTel" },
                { "data": "customerAddress" },
                { "data": "repairMethod" },
                {
                    "data": "repairState",
                    "render": function (data, type, full, meta) {
                        if (data == '100') {
                            return "提交成功，等待审核"
                        } else if (data == '101') {
                            return "审核通过，等待预约"
                        } else if (data == '102') {
                            return "预约成功，等待上门"
                        } else if (data == '103') {
                            return "提交反馈"
                        } else if (data == '104') {
                            return "签名确认"
                        } else if (data == '105') {
                            return "服务取消"
                        }
                    },
                    "class": "center"
                },
                {
                    "render": function (data, type, full, meta) {
                        return '<a href="order_details.html?id='+ full.id +'" class="am-btn am-btn-default purple">查看详情</a>';
                    },
                    "class": "center"
                }
           ],
           "ordering": false,
       });
   });